package com.googlecode.imanager.client.form;

import com.googlecode.imanager.client.Container;
import com.googlecode.imanager.client.bridge.form.IComboBox;
import com.googlecode.imanager.client.util.SelectionMode;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class ComboBox<T> extends InputList<T> implements IComboBox<T> {

    private static final long serialVersionUID = 1L;
 
    public ComboBox() {
    }

    public ComboBox(Container parent) {
        this();
        setParent(parent);
    }
    
    protected ComboBox(int width, int height) {
        super(width, height);
    }

    @Override
    public SelectionMode getSelectionMode() {
        return SelectionMode.SINGLE;
    }

    @Override
    public ComboBox<T> clone() {
        return (ComboBox<T>) super.clone();
    }

    @Override
    @SuppressWarnings("unchecked")
    protected IComboBox<T> getBridge() {
        return (IComboBox) lookupBridge();
    }

}
